﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TXTD.Admin.Data.Entitys.System;

namespace TXTD.Admin.Interface.System
{
    public interface ISysUserRefreshTokenService : IBaseService<SysUserRefreshToken>
    {
        /// <summary>
        /// 根据token获取实体
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        SysUserRefreshToken GetModelByToken(string token);
        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(SysUserRefreshToken model);
        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Update(SysUserRefreshToken model);
    }
}
